package org.wukongcrm.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wukongcrm.domain.model.AdminUserVo;
import org.wukongcrm.domain.model.R;
import org.wukongcrm.service.AdminUserService;

import java.util.List;

/**
 * @author ZhongWang
 * @since 2025 03 18:10:04
 */
@RestController
@AllArgsConstructor
@RequestMapping("/admin-user")
public class AdminUserController {

    private AdminUserService adminUserService;

    @GetMapping
    public R<List<AdminUserVo>> queryUser() {
        List<AdminUserVo> adminUserVos = adminUserService.selectUser();
        return R.success(adminUserVos);
    }

}
